package controllers;

import play.data.Form;
import play.mvc.Controller;
import play.mvc.Result;

import views.html.*;
import models.*;

public class LignesCommande extends Controller {
	
	public static Result add(){
		
		final Form<LigneCommande> ligneCommandeForm = form(LigneCommande.class).bindFromRequest();
		final LigneCommande ligneCommande = ligneCommandeForm.get();
		
		ligneCommande.save();
		return redirect(routes.Articles.index());
	}

}
